<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
          name="viewport">
    <meta content="ie=edge" http-equiv="X-UA-Compatible">
    <title>Document</title>
</head>
<body>
<div id="root"></div>
<script>
    let h = 5
    for (let i = 1; ; i++) {
        h = 0.3 * h
        if (h < 0.1) {
            alert(i)
            break
        }
    }
</script>

</body>
</html>